﻿using System.Windows.Forms;

namespace Ledict.ConditionExtract.Frm.DataProcess
{
    /// <summary>
    /// 案例逻辑段详情文本窗体
    /// </summary>
    public partial class FrmExpressDetail : Form
    {
        /// <summary>
        /// 案例逻辑段详情文本
        /// </summary>
        public string ExpressText { get; set; }
        //静态锁
        private static readonly object Lock = new object();

        static FrmExpressDetail _default;
        public static FrmExpressDetail Default
        {
            get
            {
                if (_default == null || _default.IsDisposed)
                {
                    lock (Lock)
                    {
                        if (_default == null || _default.IsDisposed)
                        {
                            _default = new FrmExpressDetail();
                        }
                    }

                }
                return _default;
            }
        }

        public FrmExpressDetail()
        {
            InitializeComponent();

        }

        private void FrmExpressDetail_Load(object sender, System.EventArgs e)
        {
            richTextBox1.Text = ExpressText;
        }
    }
}
